/*    */ package com.qmsk.business.order.order.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.gson.in.GsonHeadOneRow;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ import org.springframework.stereotype.Repository;
/*    */ 
/*    */ @Repository
/*    */ public class OrderDAO extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getOrderDetailList(String openId)
/*    */     throws SQLException
/*    */   {
/* 24 */     Map params = new HashMap();
/* 25 */     params.put("openId", openId);
/* 26 */     return getGsonOfParams("orderDetailList", params, false);
/*    */   }
/*    */ 
/*    */   public Long getMemberIdByOpenId(String openId)
/*    */     throws SQLException
/*    */   {
/* 37 */     Map params = new HashMap();
/* 38 */     params.put("openId", openId);
/* 39 */     return queryForLong("getMemberIdByOpenId", params, null);
/*    */   }
/*    */ 
/*    */   public Integer getMemberIntegral(Long memberId, Long shopId)
/*    */     throws SQLException
/*    */   {
/* 51 */     Map params = new HashMap();
/* 52 */     params.put("memberId", memberId);
/* 53 */     params.put("shopId", shopId);
/* 54 */     return queryForInt("getMemberIntegral", params, null);
/*    */   }
/*    */ 
/*    */   public GsonHeadOneRow getOrderPayInfo(String openId, Long orderId)
/*    */     throws SQLException
/*    */   {
/* 67 */     Map params = new HashMap();
/* 68 */     params.put("openId", openId);
/* 69 */     params.put("orderId", orderId);
/* 70 */     return getOneRowOfParams("getOrderPayInfo", params);
/*    */   }
/*    */ 
/*    */   public Integer getOrderStatus(Long orderId)
/*    */     throws SQLException
/*    */   {
/* 81 */     Map params = new HashMap();
/* 82 */     params.put("orderId", orderId);
/* 83 */     return queryForInt("getOrderStatus", params, null);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.order.order.dao.OrderDAO
 * JD-Core Version:    0.5.3
 */